package com.dotflat.satistics.vo;

import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2018/7/12
 * *******************************
 */
@ToString
@Data
public class TimeVo {
    private String timeName;
    private Date begin;
    private Date end;

    public static TimeVo of(String timeName, Date begin, Date end){
        TimeVo vo = new TimeVo();
        vo.setTimeName(timeName);
        vo.setBegin(begin);
        vo.setEnd(end);
        return vo;
    }
}
